package org.jeecg.modules.monitoring.j_monitoring.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 数据库(管理)
 * @Author: xiaoyq
 * @Date:   2023-03-04
 * @Version: V1.0
 */
@Data
@TableName("m_gl_database")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="数据库信息", description="数据库(管理)")
public class MGlDatabase implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id;主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id;主键")
    private java.lang.String id;
	/**数据库IP*/
	@Excel(name = "数据库IP", width = 15)
    @ApiModelProperty(value = "数据库IP")
    private java.lang.String ipAddress;
	/**数据库类型*/
	@Excel(name = "数据库类型", width = 15, dicCode = "j_sjklx")
	@Dict(dicCode = "j_sjklx")
    @ApiModelProperty(value = "数据库类型")
    private java.lang.String databaseType;

	/**数据库实例名*/
	@Excel(name = "数据库实例名", width = 15)
	@ApiModelProperty(value = "数据库实例名")
	private java.lang.String databaseInstance;

	/**用户名*/
	@Excel(name = "用户名", width = 15)
	@ApiModelProperty(value = "用户名")
	private java.lang.String userName;

	/**版本*/
	@Excel(name = "版本", width = 15)
    @ApiModelProperty(value = "版本")
    private java.lang.String edition;

	/**数据库状态*/
	@Excel(name = "数据库状态", width = 15, dicCode = "j_syzt")
	@Dict(dicCode = "j_syzt")
    @ApiModelProperty(value = "数据库状态")
    private java.lang.String usageStatus;

	/**责任人*/
//	@Excel(name = "责任人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
//	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Excel(name = "责任人", width = 15)
    @ApiModelProperty(value = "责任人")
    private java.lang.String personLiable;

	@ApiModelProperty(value = "责任人id")
	private java.lang.String personLiableId;

	/**是否监测*/
	@Excel(name = "是否监测", width = 15, dicCode = "j_sfjc")
	@Dict(dicCode = "j_sfjc")
    @ApiModelProperty(value = "是否监测")
    private java.lang.String whetherToMonitor;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remarks;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;

	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;

	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private java.lang.String createBy;

	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private java.lang.String updateBy;
}
